import { User, Tickets, Goods } from '@element-plus/icons-vue'
const routers = [
    {
      path: '/',
      name: 'Home',
      redirect: "/MemberView",
      component: ()=> import("../views/HomeView/index.vue"),
      children:[
        // 会员管理模块
        {
          path: "/MemberView",
          name: "MemberView",
          title: "会员管理",
          icon: User,
          component: ()=> import("@/views/MemberView/index.vue"),
          isMenu:true
        },
        //积分商城模块
        {
          path: "/PointsView",
          name: "PointsView",
          title: "积分管理",
          icon: Tickets,
          component: ()=> import("@/views/PointsView/index.vue"),
          isMenu:true
        },
        //权益商城内容
        {
          path: "/StoreView",
          name: "StoreView",
          title: "权益商城",
          icon: Goods,
          component: ()=> import("@/views/StoreView/index.vue"),
          isMenu:true
        },
        // 积分任务内容
        {
          path: "/TaskView",
          name: "TaskView",
          title: "积分任务",
          icon: Goods,
          component: ()=> import("@/views/TaskView/index.vue"),
          isMenu:true
        },
      ]
    },
    {
      path: '/LoginView',
      name: 'LoginView',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/LoginView/index.vue'),
    },
    {
      path: '/404',
      name: '404',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/404/index.vue'),
    }
]

export default routers